<?php

class FileController extends ControllerBase
{

    public function uploadAction()
    {

    }

    public function testAction()
    {
        //phpinfo();

        $result=$this->update("plane",array(
            "phone"=>"123456"
        ),"uas_serial_id='ZFFFCGLS16070004' ");
        if($result){
            echo "nice";
        }else{
            echo "fuck";
        }
//        $data = $this->generateDeleteData(array(
//            "table" => "subsystem_info",
//            "paramList"=>array(
//                ["id", "="],
//                ["batch_keys", "in","(",")","id"]
//            ),
//            "where"=>" not id=1"
//        ));
    }

    public function detailAction()
    {

    }

    public function getCosInfoAction()
    {
        header("Content-type: application/json");
        header("Access-Control-Allow-Origin:*");
        $cosData = array(
            'appid' => $this->filesCos['appid'],
            'region' => $this->filesCos['region'],
            'bucket' => $this->filesCos['bucket'],
            'url' => $this->filesCos['url'],
            'path' => $this->filesCos['path']
        );
        $this->returnJson($cosData);
    }
}
